ADP\BaseVersion\Includes\CartProcessor\CartProcessor D

Total Complexity 183
Dependencies 42
Dependents 3
Total lines 1,382
Lines of code 858
Logical lines of code 560
Comment lines 242
Methods 31
Properties 28

Methods 31

Method Rating Maintainability Complexity Lines of code
process()
D
16
58 269
__construct()
A
38 14 70
getAmountSavedOnlyBePricing()
A
42 15 50
calculateFreeProductsMapping()
A
42 10 51
addCommonItems()
A
44 7 45
addFreeItems()
A
42 6 56
postApplyProcess()
S
52 6 24
addNoticeIfNotExists()
S
58 6 15
replaceCouponSuccessNotices()
S
51 5 29
setProductPriceDependsOnPriceMode()
S
53 5 23
deleteAllPricingDataFromCart()
S
53 5 21
notifyAboutAddedFreeItems()
S
61 5 12
insertRegularTotals()
S
54 4 20
eliminateClones()
S
56 4 18
processFreeItems()
S
58 4 16
syncCartItemHashes()
S
63 5 10
isAdpCoupon()
S
62 4 10
processAutoAddItems()
S
60 3 13
installActionFirstProcess()
S
58 2 17
addNoticeAddedFreeProduct()
S
58 1 16
applyTotals()
S
69 2 7
withContext()
S
60 1 15
filterCheckCartItemExistenceBeforeUpdate()
S
70 2 6
sanitizeWcCart()
S
68 2 7
addNoticeRemovedFreeProduct()
S
62 1 11
getCommonItemsFromCart()
S
79 1 3
getWcNoFilterWorker()
S
82 1 3
getListener()
S
82 1 3
modifySession()
S
66 1 9
modifySessionIfCartIsEmpty()
S
73 1 5
isAdpCouponCode()
S
75 1 4